import type { App } from 'vue';
import { createPinia } from 'pinia';
import { createCnPiniaPlugin } from './cn-pinia-persist-plugin/plugin';

const pinia = createPinia();
pinia.use(createCnPiniaPlugin());

export default {
  install: (app: App) => {
    app.use(pinia);
  },
};
